import React from 'react';
import './index.css';

const Carousel2 = ({ list }) => {
    return (
        <div className="carousel2-container">
            <div className="slider">
                {
                    list ? list.map((item, i) => (
                        <div key={`item-${i}`} className="item">
                            <img src={item.pic}/>
                        </div>
                    )) : (<></>)
                }
            </div>
        </div>
    )
}

export default Carousel2;